function PlotCostFunction(weather,cost_map,target,fig)
%*=+--+=#=+--      UAS Severe Weather Simulation Softeware        --+=#=+--+=#*%
%          Copyright (C) 2013 Regents of the University of Colorado.           %
%                             All Rights Reserved.                             %
%                                                                              %
%    This program is free software: you can redistribute it and/or modify      %
%    it under the terms of the GNU General Public License version 2 as         %
%    published by the Free Software Foundation.                                %
%                                                                              %
%    This program is distributed in the hope that it will be useful,           %
%    but WITHOUT ANY WARRANTY; without even the implied warranty of            %
%    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             %
%    GNU General Public License for more details.                              %
%                                                                              %
%    You should have received a copy of the GNU General Public License         %
%    along with this program.  If not, see <http://www.gnu.org/licenses/>.     %
%                                                                              %
%           Jack Elston                                                        %
%           elstonj@colorado.edu                                               %
%                                                                              %
%*=+--+=#=+--                 --+=#=+--+=#=+--                    --+=#=+--+=#*%

  x = weather.x;
  y = weather.y;
  figure(2); hold off;
  [cs,ch]=contourf(x(:,:,1),y(:,:,1),cost_map(:,:)',[0:0.02:20]);
  hold on;
  title('Cost Map');
  %PlotCircle(fig,target.x,target.y,1500);
  %plot(target.x,target.y,'og','MarkerFaceColor',[0 1 0]);
  %axis([2.75*10^4 7*10^4 3.75*10^4 8*10^4])
  hold off;
